package com.zlzlib.libui.util;

import android.widget.ImageView;

import androidx.databinding.BindingAdapter;

/**
 * Created by zlz on 2019/9/30.
 * 该工具是 databinding 自定义属性,会自动需要该注解设置图片,不需要调用
 */
public class BindImageUtil {

    @BindingAdapter("url")
    public static void setImageViewSrc(ImageView view, int resId) {
        view.setImageResource(resId);
    }

}
